#pragma once

#include<semaphore.h>
#include<zookeeper/zookeeper.h>
#include<string>

class ZKClient
{
public:
  ZKClient();
  ~ZKClient();
  void Start();
  void Create(const char * path ,const char* data,int datalen,int state =0);
  std::string GetData(const char * path);
private:
  zhandle_t * m_zhandle;

};